package com.lloydfinch.composetour.vm

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 * Name: VMName
 * Author: lloydfinch
 * Function: VMName
 * Date: 2021/11/19 4:11 下午
 * Modify: lloydfinch 2021/11/19 4:11 下午
 */
class VMName : ViewModel() {
    private val _name = MutableLiveData<String>()
    var name: LiveData<String> = _name

    fun onNameChanged(name: String) {
        _name.value = name
    }

}